import request from "@/plugins/axios";
// 回款计划列表
export function receivablesPlanIndexApi(data) {
  return request({
    url: "/crm/receivablesPlan/index",
    method: "post",
    data,
  });
}
// 回款计划详情
export function receivablesPlanReadApi(data) {
  return request({
    url: "/crm/receivablesPlan/read",
    method: "post",
    data,
  });
}
//  新增
export function receivablesPlanCreateApi(data) {
  return request({
    url: "/crm/receivablesPlan/create",
    method: "post",
    data,
  });
}
// 修改
export function receivablesPlanSaveApi(data) {
  return request({
    url: "/crm/receivablesPlan/save",
    method: "post",
    data,
  });
}
// 删除
export function receivablesPlanDeleteApi(data) {
  return request({
    url: "/crm/receivablesPlan/delete",
    method: "post",
    data,
  });
}
// 待回款计划选项
export function receivablesOptionsApi(data) {
  return request({
    url: "/crm/receivablesPlan/options",
    method: "post",
    data,
  });
}

// 回款记录列表
export function receivablesIndexApi(data) {
  return request({
    url: "/crm/receivables/index",
    method: "post",
    data,
  });
}
// 回款记录详情
export function receivablesReadApi(data) {
  return request({
    url: "/crm/receivables/read",
    method: "post",
    data,
  });
}
// 添加回款记录
export function receivablesCreateApi(data) {
  return request({
    url: "/crm/receivables/create",
    method: "post",
    data,
  });
}
// 删除回款记录
export function receivablesDeleteApi(data) {
  return request({
    url: "/crm/receivables/delete",
    method: "post",
    data,
  });
}
